print(5/4)
print(1/3)
# 整除
print(5//2)

# 取余
print(5 % 2)

# 指数
print(5 ** 2)  # 5*5
print(5 ** 3)  # 5*5*5

# += 加法赋值运算符 c += a等价于c = c + a
# -= 减法赋值运算符 c -= a等价于c = c - a
# *= 乘法赋值运算符 c *= a等价于c = c * a
# /= 除法赋值运算符 c /= a等价于c = c / a
# //= 整除赋值运算符 c //= a等价于c = c // a
# %= 取余赋值运算符 c %= a等价于c = c % a
# **= 幂赋值运算符 c **= a等价于c= c ** a
c = 10
c *= 4 + 2
# c *= 6 ==> 60 先算复合赋值运算右边的再进行复合赋值运算
print(c)

# 逻辑运算符
print(True or False)  # True
print(True and False)  # False
print(not False)  # True
print(0 and 1)  # 0
print(1 and 1)  # 1
print(0 or 1)  # 1
print(not 1)  # False

